SRC= main
DST= apunte.pdf
OBJS=*.aux *.log *.nav *.out *.toc *.vrb *.snm *.idx

all: $(SRC)

$(SRC): $(SRC).tex
	pdflatex $<
	pdflatex $<
	clear
	mv $(SRC).pdf $(DST)
	evince $(DST) &
	rm -f $(OBJS)

clear: 
	rm $(DST)
